home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / CD-ROM Tools / CDRPlay / Include / rastport.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-27  |  1.9 KB  |  59 lines

  1. //////////////////////////////////////////////////////////////////////////////
  2. // rastport.hpp
  3. //
  4. // Jeffry A Worth
  5. // November 10, 1995
  6. //////////////////////////////////////////////////////////////////////////////
  7.  
  8. #ifndef __RASTPORT_HPP__
  9. #define __RASTPORT_HPP__
  10.  
  11. //////////////////////////////////////////////////////////////////////////////
  12. // Includes
  13. #include "aframe:include/window.hpp"
  14. #include "graphics/rastport.h"
  15.  
  16. //////////////////////////////////////////////////////////////////////////////
  17. // Raster Port Class
  18.  
  19. class AFRastPort 
  20. {
  21. public:
  22.   AFRastPort(AFWindow* pwindow = NULL);    // Default constructor
  23.   virtual void FromWindow(AFWindow* pwindow);    // Create from a CWindow Object
  24.   virtual void FromHandle(LPWindow pwindow);
  25.             // Create from a Window structure ((AFWindow*)->m_pWindow)
  26.  
  27. // Graphics functions
  28.   virtual void Clear();
  29.   virtual void TextOut(ULONG x, ULONG y, char* lpszData, ULONG length);
  30.   virtual void Move(ULONG x, ULONG y);
  31.   virtual void Move(AFPoint* point);
  32.   virtual void Draw(ULONG x, ULONG y);
  33.   virtual void Draw(AFPoint* point);
  34.   virtual void Text(char *lpszData, ULONG length);
  35.   virtual void SetAPen(UBYTE pen);
  36.   virtual void SetBPen(UBYTE pen);
  37.   virtual void SetDrMd(ULONG drawMode);
  38.   virtual ULONG GetAPen();
  39.   virtual ULONG GetBPen();
  40.   virtual ULONG GetDrMd();
  41.   virtual void RectFill(AFRect* prect);
  42.   virtual void Rect(AFRect* prect);
  43.   virtual long TextLength(char *text,long length);
  44.   virtual void DrawEllipse(AFRect *prect);
  45.   virtual void DrawEllipse(AFPoint* point, long radius);
  46.   virtual void DrawEllipse(AFPoint* point, long xradius, long yradius);
  47.   virtual void Flood(AFPoint* point, int mode);
  48.   virtual void Flood(AFPoint* point);
  49.   virtual void TextExtent(char *string, int count, PTEXTEXTENT textextent);
  50.   virtual void AskFont(PTEXTATTR textattr);
  51.  
  52. private:
  53.   LPRastPort m_prastport;
  54.   LPWindow m_pwindow;
  55. };
  56.  
  57. //////////////////////////////////////////////////////////////////////////////
  58. #endif // __RASTPORT_HPP__
  59.